package com.codedancer.campus.client.api.email.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import lombok.Data;

@Data
@ApiModel(description = "邮箱发送Ro")
public class SendEmailRo {

    @ApiModelProperty("邮箱")
    @NotEmpty(message = "请输入邮箱")
    @Pattern(regexp = "^([a-zA-Z\\d][\\w-]{2,})@(\\w{2,})\\.([a-z]{2,})(\\.[a-z]{2,})?$", message = "邮箱格式错误")
    private String email;
}
